﻿@model bdxyit.com.RecruitmentAppSys.Models.LogOnModel

@{
    ViewBag.Title = "用户登录";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    function searh() {
        var temp = window.showModalDialog("../AreaList/Index", window, "dialogWidth:500px;dialogHeight:400px;resizable:no;scroll:yes;status:no");
        $("#re").html(temp);
    }  
</script>


@Html.ValidationSummary(true, "登陆不成功，请确保输入正确，在尝试！")

@using (Html.BeginForm()) {
    <div>
      <div class="loginMess">
        <fieldset>
            <legend>已申请职位用户登录</legend>
            <div class="editor-label">
               @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input type="submit" value="登录" />
            </p>
        </fieldset>
         </div>
      <div class="registerMess">
        <fieldset>
            <legend>申请职位入口</legend>
            <p>
                @Html.ActionLink("注册用户", "Register", "Account")
            </p>
             <p>
                <input type="button" value="弹窗" id="test" name="test"  onclick="searh()"/>
            </p>
            <div id="re"></div>
        </fieldset>
        </div>
    </div>
}
